const i18nData = {
  state: {
    lang: sessionStorage.getItem('lang') || 'zh'
  },
  mutations: {
    SET_LANG: (state, data) => {
      state.lang = data
    }
  },
  actions: {
    setLang({ commit }, data) {
      sessionStorage.setItem('lang', data)
      commit('SET_LANG', data)
    }
  }
}
export default i18nData